﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using _3TierDemo.DAL;
using System.Data;
using System.Data.OleDb;
using _3TierDemo.DTO;
namespace _3TierDemo.BIZ
{
    class SVBIZ
    {

        public DataTable getAll()
        {
            SVDAO dao = new SVDAO();
            return dao.getAll();
        }
        public SVDTO getByID(int id)
        {
            SVDAO dao = new SVDAO();
            return dao.getByID(id);

        }
        public bool insert(SVDTO obj)
        {
            SVDAO dao = new SVDAO();
            return dao.insert(obj);


        }
        public bool update(SVDTO obj)
        {
            SVDAO dao = new SVDAO();
            return dao.update(obj);

        }
        public bool deleteByID(int id)
        {
            SVDAO dao = new SVDAO();
            return dao.deleteByID(id);

        }
    }
}
